<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<c:set var="sub_grant_code" scope="page">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>
<script type="text/javascript">
</script>
<div class="t_bar2" style="height: 30px; margin-bottom: -10px; padding-top: 5px; text-align: left;"><span class="color_red">*</span>建设计划及年度考核指标（限5条）</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;按年度分别从设备设施、人才队伍、科研项目、科技成果、对外合作、学术交流、开放服务、成果转化等方面制定建设计划和可量化的考核指标。该计划和指标为预期目标的分解与细化（5年）。
<table class="t_css  table01" width="100%" border="0" cellpadding="0" id="assessment"cellspacing="1">
		<col style="width: 5%" />
		<col style="width: 5%" />
		<col style="width: 15%" />
		<col style="width: 15%" />
		<col style="width: 60%" />
		<thead>
			<tr>
				<th>选择</th>
				<th>序号</th>
				<th>开始日期</th>
				<th>结束日期</th>
				<th>建设计划及年度考核指标（每项限200字）</th>
			</tr>
		</thead>
		<tbody id="tab">
		<tr style="display: none" align="center">
			<td align="center"><input type="radio" class="radiobutton" 
				name="selfund_assessment"></td>
			<td align="center"><span name="assessments|assessment[0]@seq_no">[index]</span>
			</td>
			<td align="center">
			       <input id="assessment_start_date_[0]"
				name="assessments|assessment[0]|start_date" label="开始日期" value=""
				class="required  input_text date  dateCompare:assessment_end_date_[0] dateCompareAfterE:assessment_start_date_[0]:start_date"
				style="width: 75%"  />
			</td>
			<td align="center">
			<input id="assessment_end_date_[0]"
				name="assessments|assessment[0]|end_date" label="结束日期" value=""
				class="required  input_text date dateCompareBeforeE:assessment_end_date_[0]:end_date "
				style="width: 75%"  />
			</td>
			<td align="center"><textarea label="建设计划及年度考核指标" class="input_textarea required maxlength:200" 
				name="assessments|assessment[0]|implement" rows="5" style="width: 98%"></textarea>
				<input type="hidden"name="assessments|assessment[0]|implement_hidden" 
				value="">
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/assessments/assessment" var="assessment">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="center">
				<td><input type="radio" class="radiobutton" name="selfund_assessment"></td>
				<td align="center"><span name="assessments/assessment[${flag}${index}]@seq_no"><x:out select="$assessment/@seq_no" /></span></td>
				<td align="center">
					<c:set var="start_date" scope="page">
						<x:out select="$assessment/start_date" />
					</c:set> <input id="assessment_start_date_[${flag}${index}]"
					value="${start_date}" label="开始日期"
					name="assessments/assessment[${flag}${index}]/start_date"
					class="required date input_text dateCompare:assessment_end_date_[${flag}${index}] dateCompareAfterE:assessment_start_date_[${flag}${index}]:start_date"
					style="width: 75%" />
				</td>
				<td align="center">
					<c:set var="end_date" scope="page">
						<x:out select="$assessment/end_date" />
					</c:set> <input id="assessment_end_date_[${flag}${index}]"
					name="assessments/assessment[${flag}${index}]/end_date" label="结束日期"
					value="${end_date}"
					class="required date input_text dateCompareBeforeE:assessment_end_date_[${flag}${index}]:end_date"
					style="width: 75%" label="结束日期" />
				</td>
				<td align="center"><textarea label="建设计划及年度考核指标" class="input_textarea required maxlength:200" 
				name="assessments/assessment[${flag}${index}]/implement" rows="5" style="width: 98%" ><x:out 
				select="$assessment/implement" /></textarea>
				<input type="hidden"name="assessments/assessment[${flag}${index}]/implement_hidden" class = "required"
				value="<x:out select="$assessment/implement_hidden" />">
			</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("assessment");
		</script>
	</tbody>
</table>
<table width="100%" align="center">
	<tr>
		<td>
		<input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="if(checkTabLimit('assessment','5','最多只能添加5条建设计划及年度考核指标信息')){addNewRow('assessment');showDateTag('assessment');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('assessment','selfund_assessment')"> 
			<input class="button" name="cmdMoveNext" type=button value="下移"onclick="moveNext('assessment','selfund_assessment')"> 
			<input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('assessment','建设计划及年度考核指标信息');"></td>
	</tr>
</table>